package cn.iocoder.yudao.module.crossborder.order.controller.admin.orderstatuslog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 跨境电商订单状态流转新增/修改 Request VO")
@Data
public class OrderStatusLogSaveReqVO {

    @Schema(description = "日志编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2442")
    private Long id;

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1084")
    @NotNull(message = "订单编号不能为空")
    private Long orderId;

    @Schema(description = "订单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "订单号不能为空")
    private String orderNo;

    @Schema(description = "状态类型（order/payment/fulfillment）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "状态类型（order/payment/fulfillment）不能为空")
    private String statusType;

    @Schema(description = "原状态", example = "2")
    private Integer oldStatus;

    @Schema(description = "新状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "新状态不能为空")
    private Integer newStatus;

    @Schema(description = "原状态名称", example = "芋艿")
    private String oldStatusName;

    @Schema(description = "新状态名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "新状态名称不能为空")
    private String newStatusName;

    @Schema(description = "变更原因", example = "不喜欢")
    private String changeReason;

    @Schema(description = "变更来源")
    private String changeSource;

    @Schema(description = "操作员编号", example = "19135")
    private Long operatorId;

    @Schema(description = "操作员姓名", example = "赵六")
    private String operatorName;

    @Schema(description = "操作员类型（1系统用户 2客户 3系统自动）", example = "1")
    private Integer operatorType;

    @Schema(description = "变更时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "变更时间不能为空")
    private LocalDateTime changeTime;

    @Schema(description = "附加数据JSON")
    private String additionalData;

    @Schema(description = "备注", example = "随便")
    private String remark;

}